<?php
declare (strict_types = 1);

namespace app\model;

class Partner extends BaseModel
{
    protected $name = 'partner';
    
    // 状态获取器
    public function getStatusTextAttr($value, $data)
    {
        $status = [
            0 => '待审核',
            1 => '已通过',
            2 => '已拒绝'
        ];
        return $status[$data['status']] ?? '';
    }
} 